/*
 * @Author: your name
 * @Date: 2021-07-02 18:01:28
 * @LastEditTime: 2021-07-27 16:20:08
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \base-framework-web\src\net\common\index.ts
 */
import { RequestApi } from '@/net/common/API';
import Const from '@/utils/Const';

// 结构树
export function getOrgTree(params: any) {
  const apiObj = {
    url: '/bf/common/org/get_org_tree',
    method: 'get',
    params,
  };
  console.log(apiObj);
  return new RequestApi().getRequest(apiObj);
}

// 人员列表
export function getByMgtorg(data: any) {
  const apiObj = {
    url: '/bf/uc/employee/get_by_mgtorg',
    method: 'post',
    data,
  };
  return new RequestApi().getRequest(apiObj);
}

// 用户列表
export function choosePage(data: any) {
  const apiObj = {
    url: '/bf/uc/user/choose_page',
    method: 'post',
    data,
  };
  return new RequestApi().getRequest(apiObj);
}
